<%@page language="java" pageEncoding="UTF-8" isThreadSafe="false"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.request.*"%>
<%@page import="java.util.*"%>
<%@page import="com.hundsun.rm.util.*"%>
<%
	String basePath1 = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";

	/*WebApplicationContext wac = WebApplicationContextUtils
			.getRequiredWebApplicationContext(this.getServletConfig()
					.getServletContext());*/
	Integer date = DateUtils.dateToInt(new Date());
	Integer lastMonthDate = DateUtils.lastMonthDate();
	String year = String.valueOf(date).substring(0, 4);
	int month = Integer.valueOf(String.valueOf(date).substring(4, 6));
%>
<script language="javascript" type="text/javascript">
Ext.ns('App.defaultValue');
App.bashPath = '<%=basePath1%>';
App.defaultValue.date = <%=date%>;//默认业务日期
App.defaultValue.year = <%=year%>;//默认年份
App.defaultValue.month = <%=month%>;//默认月份
App.defaultValue.lastMonthDate = <%=lastMonthDate%>;//默认业务上个月月末日期
</script>